/*package SHClient;

import java.awt.event.ActionEvent;
import java.io.IOException;
import java.sql.*;   
import java.util.*;   
import java.text.SimpleDateFormat;   
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import SHGui.*;
import java.util.Properties;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import SHGui.MainHome_GUI;
import SHClient.ListVar;
import SHClient.Main;
public class Lamps_Ctrl implements ActionListener,ChangeListener {
public Lamp_GUi lg;

	
	
	
public  Lamps_Ctrl(){
	lg=new Lamp_GUi();
	Main.lc1.frame.setVisible(false);
	Main.lc1.set_panel(this.lg); 
	lg.slider.addChangeListener(this);
	lg.btnBack.addActionListener(this);
}
	public void actionPerformed(ActionEvent e) {
		
	    try{
	    if	(e.getSource()== Main.lc1.cc.panels_order.getLast().iBack){
		
		Main.lc1.set_panel(Main.lc1.cc.panels_order.getLast().panel);
		Main.lc1.cc.panels_order.removeLast();
	    }
	    }catch (Exception ex){}
	
		
}

	@Override
	public void stateChanged(ChangeEvent e) {
		int value=lg.slider.getValue();
		lg.curval.setText("current value "+value);
		
	}
}
*/